<template>
  <div>
    <el-card>
      <div align="center">
        支付结果:<h3 style="color: red">{{msg}}</h3>
        <el-link href="http://localhost:8888/#/orderCus?state=3">去往您的订单列表界面>>>>></el-link>
      </div>
    </el-card>
  </div>
</template>

<script>
  export default {
    name: "PayResult",
    data() {
      return {
        msg: "",
        nowUser:{}
      }
    },
    mounted() {
      this.nowUser=JSON.parse(sessionStorage.getItem("customer"))
      //获取当前url的值
      var fulPath=this.$route.fullPath
      //获取后缀的内容
      var uri=fulPath.split("?")[1]
      this.$http.post("/aliPay/checkSign?"+uri,this.nowUser).then((res)=> {
          this.msg = res.data.message
          console.log(res.data.message)
      })
    }
  }
</script>

<style scoped>

</style>
